<head>
  <script type="text/javascript">
var ctrlDown = false;
document.onkeyup = function(e) {
  // Ctrl is 17, left Command is 91, right Command is 93
  if (e.keyCode == 17 || e.keyCode == 91 || e.keyCode == 93)
    ctrlDown = false;
}
document.onkeydown = function(e) {
  // Ctrl is 17, left Command is 91, right Command is 93
  if (e.keyCode == 17 || e.keyCode == 91 || e.keyCode == 93) {
    ctrlDown = true;
  } else if (String.fromCharCode(e.keyCode) == 'D' && ctrlDown) {
    window.domAutomationController.send('web page received');
    return false;
  }
};
  </script>
</head>
